import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/year2019/index'
import Treasure from '@/year2019/treasure'
import redPacket from '@/year2019/redPacket'
import cardsBag from '@/year2019/cards'
import goldenPig from '@/year2019/goldenPig'
import handBook from '@/year2019/handBook'
import activityShare from '@/year2019/activityShare'
import prizeList from '@/year2019/activityShare/rules'
import goldenEgg from '@/year2019/goldenEggLog'
import openRedBag from '@/year2019/openRedBag'
import errorPage from '@/year2019/error'
import noNet from '@/year2019/noNet'

Vue.use(Router)

export default new Router({
    // mode: 'history',
    routes: [
        {
            path: '/homepage',
            name: 'index',
            title: '新年活动',
            component: Index
        },
        {
            path: '/treasure',
            name: 'treasure',
            title: '聚宝盆',
            component: Treasure
        },
        {
            path: '/red-packet',
            name: 'redPacket',
            title: '红包',
            component: redPacket
        },
        {
            path: '/card-bag',
            name: 'cardsBag',
            title: '福卡锦囊',
            component: cardsBag
        },
        {
            path: '/golden',
            name: 'goldenPig',
            title: '福运金猪',
            component: goldenPig
        },
        {
            path: '/handbook',
            name: 'handBook',
            title: '活动规则',
            component: handBook
        },
        {
            path: '/prizelist',
            name: 'prizeList',
            title: '福运奖品',
            component: prizeList
        },
        {
            path: '/',
            name: 'activityShare',
            title: '活动分享',
            component: activityShare
        },
        {
            path: '/goldenlog',
            name: 'goldenEgg',
            title: '金猪日志',
            component: goldenEgg
        },
        {
            path: '/open-red',
            name: 'openRedBag',
            title: '红包',
            component: openRedBag
        },
        {
            path: '/error',
            name: 'errorPage',
            title: '出错提示',
            component: errorPage
        },
        {
            path: '/nonet',
            name: 'noNet',
            title: '信号问题',
            component: noNet
        }
    ]
})

